package group2assignone.ucm.manager;

import group2assignone.ucm.UCController;
import group2assignone.view.manager.DeleteFlightView;

/**
 * use case to go back from deleting a flight
 * @author group2
 */
public class UCDeleteFlightBack implements UCController {

    private DeleteFlightView deleteView = new DeleteFlightView();

    /**
     * sets view
     * @param dView
     */
    public UCDeleteFlightBack(DeleteFlightView dView) {
        deleteView = dView;
    }

    @Override
    public void run() {
        deleteView.clearShowFlightWindow();
        deleteView.go();
    }
}
